<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/vue-2.5.7.js"></script>
</head>
<body>

<div id="app">
    <h2>{{product}} are in stock.</h2>
    <ul>
        <li v-for="p in products">
            {{p}}
        </li>
    </ul>

    <div>{{message}}</div>
    <div>
        <span>{{inputText}}</span><br/>
        <input v-model="inputText"/>
    </div>
    <div>
        <input type="checkbox" v-model="flagN" value="b">b</input>
        <input type="checkbox" v-model="flagN" value="c">c</input>
        <input type="checkbox" v-model="flagN" value="a">a</input>
        <br/>
        <span>{{flagN}}</span>
    </div>
</div>
<script>
    const app = new Vue({
        el: '#app',
        data: {
            product: 'Boots',
            products: [
                "Books",
                "Jacket",
                "Video"
            ],
            message: "Hello Vue.js",
            inputText: "Input Text",
            flagN: false
        },
        methods: {
            reverseMessage: function () {
                this.message = this.message.split('').reverse().join("");
            }
        }
    });
</script>
</body>
</html>